<div class="ev-formulario">
    <div class="ev-title-page">
        <h1>Atividade do papel</h1>
    </div>
    <form action="<?php echo $this->baseUrl(); ?>/papel-atividade/gravar" method="post" name="formulario" id="formulario">
        <input type="hidden" name="id_papel_atividade" id="id_papel_atividade" value="<?php echo $this->row->id_papel_atividade ?>" />
        <input type="hidden" name="fk_papel" id="fk_papel" value="<?php echo $this->row->fk_papel; ?>" />
        <fieldset>
            <div class="ev-campo">
                <label for="fk_papel"><?php echo $this->translate( "fk_papel"); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
                <?php echo $this->aReferencias["fk_papel"][$this->row->fk_papel]; ?>
            </div>

            <div class="ev-campo">
                <label for="st_codigo"><?php echo $this->translate( "st_codigo"); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
                <input class="text ui-widget-content ui-corner-all required" type="text" name="st_codigo" id="st_codigo" value="<?php echo $this->row->st_codigo; ?>" title="<?php echo $this->translate( "st_codigo"); ?>"  maxlength="10" />
            </div>

            <div class="ev-campo">
                <label for="nr_ordem"><?php echo $this->translate( "nr_ordem"); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
                <input class="text ui-widget-content ui-corner-all required" type="text" name="nr_ordem" id="nr_ordem" value="<?php echo $this->row->nr_ordem; ?>" title="<?php echo $this->translate( "nr_ordem"); ?>"   />
            </div>

            <div class="ev-campo">
                <label for="st_nome"><?php echo $this->translate( "st_nome"); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
                <input class="text ui-widget-content ui-corner-all required" type="text" name="st_nome" id="st_nome" value="<?php echo $this->row->st_nome; ?>" title="<?php echo $this->translate( "st_nome"); ?>"  maxlength="255" size="82" />
            </div>

            <div class="ev-campo">
                <label for="st_descricao"><?php echo $this->translate( "st_descricao"); ?>&nbsp;<span class="campoObrigatorio">*</span>: </label>
                <textarea class="text ui-widget-content ui-corner-all required" rows="10" cols="80" name="st_descricao" id="st_descricao" title="<?php echo $this->translate( "st_descricao"); ?>" ><?php echo $this->row->st_descricao ?></textarea>
            </div>
        </fieldset>
        <div class="botoesAcao">
            <button type="submit" name="botao-salvar" id="botao-salvar">Salvar</button>
            <button type="button" name="botao-cancelar" id="botao-cancelar" action="<?php echo $this->baseUrl() ?>/papel-atividade">Cancelar</button>
        </div>
    </form>
</div>
<script type="text/javascript">
    $().ready(function() {
        $("form").validate({ignoreTitle: true});
    });
</script>
